package com.leyou.common.enums;

public enum  LyEnum {
    PRICE_CANNOT(400,"价格不能为空"),
    CATEGORY_NOTFOUND(400,"找不到目录"),
    BRAND_NOT_FOUND(404,"品牌找不到" ),
    BRAND_SAVE_ERROR(500, "品牌保存失败"),
    CATEGORY_BRAND_SAVE_ERROR(500,"品牌中间表新增失败" ),
    UPLOAD_FAIL(400,"上传失败" ),
    GROUP_NOT_FOUND(400, "规格组找不到"),
    GOOD_NOT_FOUND(400,"找不到商品" ),
    GOOD_FAIL(400,"保存失败" ),
    SPU_NOT_FOUND(400,"spu找不到" ),
    USER_DATA_TYPE_ERRPR(400,"用户数据类型无效"),
    PASSWORD_ERROR(400,"用户名密码异常" ),
    NO_TOMEN(403,"未授权" ),
    WX_PAY_NOTIFY_PARAM_ERROR(400,"支付失败" );
    private Integer code;
    private String message;

    LyEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
